package com.entor.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.entor.model.EduMenu;
import com.entor.service.EduMenuService;
import com.entor.util.Msg;

@Controller
@RequestMapping("/menu")
public class EduMenuController extends BaseController{
	
	@Resource(name="eduMenuService")
	private EduMenuService ems;
	
	@RequestMapping("/index")
	public String menuIndex(){
		return "/menu/menuIndex";
	}
	
	@RequestMapping("/find")
	@ResponseBody
	public List<EduMenu> find(EduMenu em){
		return ems.find(em);
	}

	
	
}
